fixed viewport error