fix compiler warning in release build