compatibility with Stay-Open Menu and bugfix