fix ASSERTIONS output on bad function pointer calls