Fix stat parser