[TienLP] fix bug #40, #41