fix the build_assoc_subspaces rule