fixes a bad call of len(...)

Signed-off-by: zachwick <zach@zachwick.com>