fixed debugmode