fix problem with listener