Fixed empty treatment period bug