Reverting error in previous commit in def