Bug fix to story theme calculation