fix element function replacement option