fix THEME_DIR bug