Fixed to resolve warnings.