period null bug fixed