Fixed bug in first level analysis