Fix potensial attribute error.