Fixed filetime and some crashes