Fixed dcast typo and changed merging section