Fixed bug with several extra roots in extra classes

Signed-off-by: Daniel Bondergaard <danielboendergaard@gmail.com>
Merge pull request #13 from danielboendergaard/root-count-bug

Fixed bug with several extra roots in extra classes