fix primitve type issue