Fixed memory leak, fixed edit in action sequence