Fix a bug in filling J_MapQuantity.
Modify for production env.