fix period issue