Fixed a small compatibility bug