# Curve modifier breaks object's position

I positioned cylinder on cube's face and want to make array of it along curve in the middle of cube's face: For that i use Array and Curve modifiers on cylinder, but every time i use Curve modifier, cylinder "jumps away", loses it's position and i don't know how to bring it back without cancelling Curve modifier:

Here is the file:

• I think this is a problem with origin or your objects. I suggest to delete the cylinder and curve and recreate them at the World origin. Then only move the curve to the rectangular shape. – Bruno Apr 14 at 9:10
• Hello :). Bruno is right. Also, your objects don't have applied rotation, which causes trouble on it's own. Good luck. – Jachym Michal Apr 14 at 13:12
• @Bruno I deleted curve and cylinder and recreated them. Curve was moved to the face while cylinder was left at the World origin. The result of Curve modifier used is on 3-rd pic. – Антон Антон Apr 15 at 22:23
• @Jachym Michal Curve's and cylinder's origins are at the World origin. All transforms are applied. The result of Curve modifier used is on 3-rd pic. – Антон Антон Apr 15 at 22:24

1. Select the curve and Apply All Transforms
4. Apply All Transforms on the cylinder
6. Select the curve, and in Edit Mode do Ctrl T to adjust the tilt