Fix extension management upon file creation.