Fixes coordinate conversion issue. Thx @kkaefer