remove invalid specs