Fix spec and params inheritance