RM fix: duplicate arrays when adding sources