[TienLP] fix bugs #47, #48, #49