Fixed cookies and homepage doesn't crash