Fix create_surface bug which shorten last node's surface