fix constant script_debug access