Fixing #574

@Sama34 Array merge works in suh a way that the second parameter overwirtes the values of the first if they aready exist. I wasn't entirely sure which order to use in some cases.