Fixed a compatibility bug