Issue322

Fix for issue 332, where we were not considering if the root item has dynamic values.