fix bitstrings