fix post function overriding element