fixed small error in Metacommunity function