Fix postactivate for legacy projects.