Fix a bug in bsp

Item() sometimes returns elements not intersected with input rect.