Array on curve modifier not working properly

Hey,

Array is not following the curve but instead just continues at the last vertex on bezier curve like seen in the picture. Any help? I tried doing it on fresh file and it works, however I cant get it working on my current project.

EDIT: Got it working by playing around axis settings, sorry!