Fix subspec inheritance