Fix vertical bounce bug.