storyboard problem executes the function multiple times after reentry

Hello,
I add my function to the following section:
function scene:enterScene( event )

the function just prints a string to the console

when I exit the scene and reenter the scene and execute the function. It gets executed twice.
When I exit the scene again and reenter again and I execute the function it gets executed even more times and the times it gets executed grow everytime I exit reenter the scene.

How do i clear the function?

I I actually added the function name to the group:insert(functionName)
That actually works but also gives an error in the terminal.

What should I do to clear the function?

Thanks. [import]uid: 100901 topic_id: 19448 reply_id: 319448[/import]