fix duplicate message on print .func if no active class