Fix removeRows to really work.
I can't believe I did such a beginner mistake, fix the order of arguments in the for-loop. gcc even warned me about it :(