Add the assign check for self

because u cant assign to yourself after clear()