assignMenuItem bugs fixed