Added patch to fix the auto-hiding sub menu feature