Fix bit check