Fixed update code.