Incorrect brackets matching