problem with yanfly engine visual battle

i was working on a earthbound styled engine, i put an npc to fight, when i enter on battle I saw this text saying:
"Script "Yanfly Engine Ace - Visual Battlers v1.0" line 296: TypeError occurred.

nil can't be coerced into Fixnum"

then, i tried to go on the line and i saw this:
@move_y_rate = 0 if @screen_y == @destination_y || @move_y_rate.nil?

how do I solve this problem? how do i troubleshoot this problem?

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-yanfly-engine-visual-battle.138243/