fixed crash when source type not available