Clean up array creation
Widget shouldn't rely on the old global, now that we're using a proper singleton.