Fix a bug in assignement operator