fix not found exception if type dont exists