fixed escaping of square brackets