I gues it has something to do with the registry values.Classic case was Vista with the same kind of problem :-Automatic Folder Type Discovery
Automatic Folder Type Discovery is when Windows will automatically change the folder template of a folder to match the file type of the last file added or saved in the folder. For example, if your folder contains music files and you add a picture file, then Windows may change the folder template and view to the "Picture" template to match the new picture file
You can try disabling Automatic Folder Type Discovery
Here is Link that shows certain Scenarios and you can also gp through this
The steps are mentioned below
Type regedit in RUN or start menu search box and press Enter. It'll open Registry Editor.
Now navigate to following key:
Under "Shell" key, select "Bags" key and press "Delete" key. It'll ask for confirmation, click on Yes button.
Now right-click on "Shell" key and select "New -> Key" option. Give the new key name of Bags
Now right-click on "Bags" key and select "New -> Key" option. Give the new key name of AllFolders
Again right-click on "AllFolders" key and select "New -> Key" option. Give the new key name of Shell
Now click on this new "Shell" key and in right-side pane, create a new String value and give it name of FolderType and set its value to NotSpecified