Fix some bugs in getListThemes method