Bugfix for error notice