Fix wrong parent of mixed classes