fix cnt bug in sparse_encoder_004