Replacing missing closing bracket