bug fix in pkfit