fix error and enable slowlog by default