Coincounter bug fixes