fix brackets resolve to work more like JS