RGSS3 custom event movement only runs once

I have been stuck on this error for one of my scripts for a couple of days now and im not sure whats causing it, the code in question is here:


Ruby:
def self.create_ev2(x, y)
      ev = RPG::Event.new(x, y)
      ev.pages[0].graphic.character_name = 'Actor1'   
      ev.pages[0].graphic.character_index = 0
      ev.pages[0].move_type = 3
      ev.pages[0].move_route.list[0].code = 45
      ev.pages[0].move_route.list[0].parameters = ["print('test')"]
      Game_Event.new(@map_id, ev)
      $game_map.need_refresh = true
      game_ev = Game_Event.new($game_map.map_id, ev)   
      $game_map.events[ev.id] = game_ev
      return
    end

The issue is that when this event is spawned in, it does its movement code precisely once and then stops as if MoveRoute.repeat is false, in fact, the behavior is identical.
if it helps, this method is ran in at the end of Game_Map.setup(), but ive ran it from another event too and i get the same issue.

I think the error is somewhere past move_route because I set move_type to anything other than 3(custom) and the movement repeats just fine
Add
ev.pages[0].move_route.repeat = true


repeat by default is true, no need, tested anyways, same result. I also tried force_move_route, and had the same result, but it ran the movement code twice instead of just once (both in the same tick).

Original thread: https://forums.rpgmakerweb.com/threads/rgss3-custom-event-movement-only-runs-once.126913/