bug fix if parse error in the first lines
Add dependencies when using loadModule