Correct a bug in Logit.m