fix period insert