There's a good transmission article on Anton Largiader's web site. Due to the design of the transmission, it doesn't downshift well if not moving. Here is a link to bmw transmissions
At this point you should probably wait for it to happen again. Maybe your transmission wasn't fully in gear, it happens.