bugfix figure count for multiple uploads;