Fixed view error undefined