fix commit file handler