fixed a for stat error