Bugfix for debug on api cmd page