Fix bit logic accounting for redis inverse logic