fixes view bug