Fixed bug where date fields weren't being set for new loops