fixed issue with page breaks