Bug fix: final fix for odd errors with undefined variables in engine's constructor