fix load unvalid source crash