fix compiler warning