Fixed wrong error message

There's a confusing error in the error message :)