bugfix for debug panel