Fixed a crash which happened when trying to show views or layers from 64-bit simulator.