Fixed bug with html card dynamic event assigment