#FIX: finalization was entering in an infinite loop