fix bug in makeCanopies