fixed bug with learning curves