fixing stupid bug with location