fixed lag issue with viewport