Fixed bug where view was being changed before it was set.