Fixed problems that were a result of removing paragraph style caching #535