Fix bit clearing