Fix a bug in b/B commands.