Fix update error

completed #8