fixed template/models/views bug