fixed bug in fitting ch2