Fix logSelector bug