Corrected the views to be generated correctly.