Click and Drag not working on filtered views

When I try and click and drag to create an event on a view that is filtered, the event doesnt show. Once I am done dragging, however, the lightbox shows with the correct start and end time. If I comment out the code below, it all shows when clicking and dragging. Any idea what may be going on?

Thanks!

Here is the code in question:

	[code]// Filters the week view. Only able to view the currently logged on instructor 
	scheduler.filter_week = function(id, event) {
		if (event.instructor_id == <?php echo $id; ?>)
			return true;
	}
	
	// Filters the day view. Only able to view the currently logged on instructor 
	scheduler.filter_day = function(id, event) {
		if (event.instructor_id == <?php echo $id; ?>)
			return true;
	}
	
	// Filters the month view. Only able to view the currently logged on instructor 
	scheduler.filter_month = function(id, event) {
		if (event.instructor_id == <?php echo $id; ?>)
			return true;
	}[/code]

I got it. When I would click and drag the event, the id would equal null and get filtered before even creating the event.

Updated

[code]// Filters the week view. Only able to view the currently logged on instructor
scheduler.filter_week = function(id, event) {
if ((event.instructor_id == <?php echo $id; ?>) || (event.instructor_id == null))
return true;
}

	// Filters the day view. Only able to view the currently logged on instructor 
	scheduler.filter_day = function(id, event) {
		if (event.instructor_id == <?php echo $id; ?> || (event.instructor_id == null))
			return true;
	}
	
	// Filters the month view. Only able to view the currently logged on instructor 
	scheduler.filter_month = function(id, event) {
		if (event.instructor_id == <?php echo $id; ?> || (event.instructor_id == null))
			return true;
	}[/code]