Support clear(int)