Lambda fix

Hi,

I fixed lambda expressions so it also fetches events that start on one day and end on another, and scope is in the middle of event. Without this fix, those events are never fetched.