Fix debug/release modes