Fixing STAT error