Segmetation fault in case of resuming/restarting fixed

Signed-off-by: Youngki Ahn <avej.com@gmail.com>