Fix bug where select was not selecting due to static typed comparison