Fixed segfault is empty data on cas is OK.