fixed error message in spec