fix error when using simple theme