Resolve compiler warning