bracket bugs fixed