fixed lazy update bug