Fix issue with integer coordinates