Fixing issue with double $input vars for chunks ft pre_save