Fixes view permissions handling.