fixed problem with night period