fix vitamin require calculation bug