Registration and orientation change bug fixes.