fixed attribute error on line 92