Added check coordinates when puted dot.