fix warning in release builds