fix multiple paragraph bug