fix buffer fail in trash_create() func