fix work with views