Bug global mode fixed