Fixed error in assert (only for debug mode)