fixed collecting branches