fixing another attribute error