Fixed update function