[#39] fixed problem with nested attributes, now it works as it suppose to