Fixes view error