Fixed filecheck