An alternative to dynamic_inputs_for package?

the package dyanmic_inputs_for is for adding nested fields but it does not work when I have two level nested fields, it adds new fields to a wrong place,
is there any alternative to this package?