Fixed select * from Foo not returning anything from repo