stat command fixes