fix: undefined method `length' for nil:NilClass