counter issue fixed