Fixes errors in views