fixes view problem