Fix Issue #13 - It is possible i < X.size() should be used instead of X.size()