Fixed a compatibility issue