Fix memory leak.
use category to set theme.
use category to set theme.
use category to set theme.