fix annoying jitter bug