fixing some bugs into the PDL server