fix ca bug (#4)