fix insert with empty data given