fixed bugs with bee in composites.c