The loop was checking the len of the island, but if the island started in the last point the copy was not executed.