App throwed an error at restart if a callback was registered