added fix for bad casc data