Fix crash bug in move to EOL action