fixing data-value to work if not defined