Fix for collecting bugs

Fix for collection bugs which registered as a bug and have a related tasks too.