fix slipping debug code