fix some bugs updatepass