Fixing problem in and_gate that occured after latest promise changes