fixed some jumping bugs