File ending fix