fix scheme bug