fix compatibility