fix period error