Fixed some more script errors in Engine.