Fix typo causing error when a view throws an exception