fix occasionally showing flash on root url