fixes throttle function on client side