fixed a bug with notifications where it could access App object when it was freed