try to fix if bug