fix sub total issue on pdf version