Fixed a small bug in cpanic