Fix type error in contributions controller