Fixes the dynamic menu sizing issue