Fix bug in BS.