fix loop rate