fix current paragraph bug