fix for menu collapse