some fixes to make QComboBox work properly