fixes brackets/issues#6642