Fixed a compatibility bug.