fixed issue with fig