fixed bug with update rate