Fixed a error with matching barlines.