fix bug in stat64