fix bug generator