Fix multiple deallocation (three deallocation for the same varaible that's a bit...