Distance not ready Error Fixed