Fixed bug where app would crash on orientation change in calculator