Fixed a compatibility issue.