Fix call to len (should be length)