fix issue when using floatin point coordinates

Signed-off-by: Felix Dumit <felix.dumit@gmail.com>