There are few fix for this
Firstly in your mobile phones do this
First Step
- Go to Settings ----> Application ------> Development
- Uncheck USB Debugging Mode
Second Step
- Go to Setting ---- Connectivity ------ > USB
- here you would find option like Samsung Kies, USB Storgae Mode, Media Player, PC Internet just select samsung kies if you are looking to connect your mobile to kies