remove listener so it only fires in correct case