rpMaxAmount validator bug fix