restore previous getter onMessage