Fixed template crush when no data received