fix segfault on receiving keys with destroyed cas