Fixed bug in STAT length