Fixed improper update behaviour.