Fixing Lumerical engine or run time errors