release mode fix