[FileMap] Fixed commit functionality related logic.