Fixed #18: using begin(x) instead of x.begin()