Bugfix for element selection failing.