fixed date scoping; should be updating properly now