fixing copy paste error in update code.