Fix coordinate change, tested in browser