fixed bug due to private update method