fixed attribute error in fetch_all decorator