fixed an error with counting and now everything should work ok