bug fix: fallback if data is not defined