fixed lag issue, don't know how