fix bug on pm counter