fixed a small bug in func_assert