fix rebuild path problem