bug fix: initialise $elm as array , we want to merge with it