I see.
This seem a little complicated but i will try my best to help you out.
-Steps Shown are for Windows 7™ PC
Open your PC > Go to Control Panel > Devices And Printers > Press on you device Xperia M2(or the name of your phone) > Right click and press "Remove Device"
Restart your PC and then reconnect your phone.
See if that solves it