attribute error fixed