Remove any undefined sources