fixed camera listener attaching/detaching issue