fxing errors