Compile DB Select: Bugfix, make sure that selector does not get modified