Fix that this is triggered twice when using form elements