fix well bug