Edit some bugs encounter during deploy.