Fixed type in error message