fixed crash on init from luascript patch load