Fixed typo with size. Fixed write_cas_callback.