bug fixes for incomplete cases