fixed minor problem with effect counting