Try to fix repository detection issue.