fix grid bits