Fixed the runaway x bug