Fix cache incr and decr