resolve compiler warning.