fixed that unclosed bracket bug