fix incompatibility with latest SC versions (class `UI` is gone. Thank you!)