debug signals called twice