Fixed compiler warnings.
Fixed reading start date from settings.