fix bug with bracket