Fixed sliding and jumping bugs