Fixed usage of len.