Reshape the dynamic binding and add flatten