solved bug of store coordinates