fixed the production issue in momemts createAPI