fix warning to spec