fixed history scope

fixed condition if start day in within the same month