Fixes #20, misspelt error message in method definition.