Fix broken method call to set vertex value in legacy JS code.