bugfix for debug