fix coordinate issue