Fix insert action bug