fix for dynamic top menu positioning