fix crash on wrong debug print