Fix bug in insertin primay in other type