fix error commiting empty route