fix bitmap config use

btw, are we sure about the use of mutability here?