compile fix in release mode