Fix the NameError in specs