fixed the active pins bug