Fixed bug in fetch