solve compatibility issue