Solve bug about max number inputs in ERA