fix the union error on framework class