Fixed error with view