fix className undefined