fixed unknown type bug