fix compatibility error