Trigger action only once, fixes #506