fixed compilation in debug mode.