Add logic to fix pathes.