fix deprecation check