Fixed line no. bugs in pretty printer