fix: error report when production true.