improved error message
bugfix