Fixed incorrect text layer destroy