Fixed some bracket issues