bugfix on projection queries in rails 4