Small bug with function name for distance toggle