Fix bug: regexp for 'REFERENCES' was case-sensitive