a mostly working fix to the multiple sentences per line case