small fix to listener