fix release mode warnings