bugfix: initialize variables in modify_episode()

avoid double free()