Source detection fixed