修复清空数据后崩溃的问题

Signed-off-by: ymback <ymback@sayyoulove.me>