fix source model check