fixed bug about connected components in propagated background