Double free fix