Fixes Model.select bug

```@records``` is not an array it's a hash, so sometimes there is no zero index. So, it should be traversed as a hash