fix path and fix some link error