Fix classes in fragments