Fix STPM rebuilding.