fixing view priority issues