Fix the store param function for arrays