Removed extra bracket from update code