bug fix for gallery when no composites are loaded and rotate.