Fixing X axis update issue