fix bug in theme in software_x11 mode