Yet another attempt at fixing the dropdown overlay issue.