fix empty source issue