fixed compatibility issue