Fixed mistake using size instead of len.