handling undefined src