fixed problem with Update