Ensure $sources is Array ( fix #3520 )