fixed learn button issue