Function executing twice?

Hey,

Read here:

Documentation:

Answerhub question same as yours (simpler)