Fixed resolve bug.