Fixed bug when no paragraph was inside a page