fix warning display in source mode