fix COUNT error