fixed the repeated dectetion problem