fix bogus condition, remove superfluous instruction