fixed a warning in release mode