fixing theme config writing