data url fix for modal close