counter issue fix