Added some bug fixes.

Check to make sure mediaEntries is an array.
Added a fix from bart for the geometry editing.