fix click command to replace element flag