Bugfix: improved error message