fix kmplot properly