Prevent attaching multiple listeners