fix fetch and build