fixed a compatibility issue