corrected overflow on pin, and menu_set_active_item