Minor insert bug fixed