bugfix for error