fixed bug calculating conditional entropy