source type bug fix