Fixed crash issue

Fixed an issue where a crash would occur on rotation if not left or no
right menu was specified.