Fixed bug in postUpdate