cycle button bugfix, bugfixes for various X stuff