the_title filter (1 post)

Hi,
in my plugin "Bookable Events" I've used the 'the_title' filter for adding the 'bookable event' label to the title of a 'bookable' post, but this label appears also in the 'Last comment' widget for not bookable post.
The code is: