Fixed the case of no sources