fix wx object bug