You inspect and correct mime file types' associations with proper applications.
In GUI invoke System -> Preferences -> Personal -> Preferred Applications menu entry and ensure correct settings.
Inspect predefined mime types in etc\mime.types and make corrections, if any.
Continue with xdg-mime command to inspect mime associations and even remove / reinstall associations from file. (See man xdg-mime for more information)