fixed bug in ->fetch()