fixed bug in debug macro