fixed the fetch_all commands in capricornLib