Bugfix for error message

Removed unnecessary error message