Fixed typo in regnormal code