Fixed disabling script in release build