fixed viewport issues