fix black/white list bug