fix some errors in views