Fix boolean logic for redis slave