solve bar highlight issue