fixing upload removing and fig numbering