Fix issues of CAP learnsets