fixed some bugs on LRTDP