Fixed errors with syntax patterns.