fix coordinate rounding issues, close #1