Thank you for your comment. I was aware of this bug, but I didn't think anyone would discover it. The solution is as simple as what you said, it was an oversight on my part to forget to set the Y-speed to zero.