fixed paragraph parsing