fix jittering enemy bug