Fixing assertion errors.

Fixing https://github.com/aborg0/rapidminer/issues/2
Right, I was just looking at the added lines. I'll re-add it again.