Tested and fixed bugs in the fetch functionality.