fix ui not disabled issue