fix sub spec names behavior