bugfix for element selector