fix error message in spec