Fixed bug with empty data url