Fixed assert registration bug.