fix counter error and up release