fixed coords bug