fix removed check_plain