fixed some bugs relating to dynamic start dates