Fixed incorrect destruction (it might lead to crash)