bug fixes in extract.survfit function