Content generation fix.

[UPDATED]   For safer MOC usage API.
[FIXED]     Actually set the active element so that content is generated.