fixed theme registry bug