Fix assert() condition