Fixed the "going to second-to-last button" bug.