Fix necessary association replace when primary value is zero
Add decode method for admin