undo bugfix - added error message