fix: source_type check