fix compatibility bug