logic bug caught by tests in heron