X button fix