Fixed issues with view loading.