fix spec and error message