Fixed error while deleting routes