fix editor count bugs