Fix equation for x-position