Optimization with menu. Fixed issue with unsigned bit and delegate Fixed #1994