Fixed a small bug regarding loading views