fix assignement operator bug