fix bug generator._shouldOverride; #9