fixes a bug where resolve was not triggered