fix to listener attachment