Fixed bug in analyser