fix bug (replace AB with [])