fixing lstat