Fixed typo, added compatibility check