Fix support function call and ensure element is empty before you override