fix bug in loadcustomtheme()