fixed an update bug with new next.