fix grape 406 bug