Removed bug in distance increment/decrement functionality