fixed errors in views