fix deprecation function call in the last seen listener