bugfix to selector and ruby statement.