Fixing view crash.