fixed deepcopy bugg with x and y