Added orientation fix for crash.