add a log, then find a bug