fix eval error causing webpage error