Fix typo

There was a small typo in one of the BaseErrors preventing it to be raised properly.