FIX: free before set