slight fix to an order of destruction issue;