fixed issues in update