fix embed type bug