corrected bug menu control