fixed bug with location x