fixed bugs with fetching and with a spec