Launch terminal and paste
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
Once the process is finished (sometimes it takes a while), you need to restart Finder via this code:
killall Finder
Job done.