Fixed missing return in graycode