Fix the bug solution to gas station