Fix bug in memory adapter offset

Before this fix, offset(n) returned the last n records, while it should
return all records except for the first n records