Fixed errors for first 3 allowed cases.