Fix type spec on get method.