Fixing hover issue

Fixes hover issue when next first level items appear higher than third level ones of currently selected one.