bug conter and counter0 fixed