fixed endless error loop with eh