Fix afterauth view rendering