fix issue in edit route