fixes #4691 Error in the log when add twice the same widget