Timer XML bug creation

Solves a bug when timer xml creation didn’t create the tag <action>
properly.