The callback was called twice on error