fix bug in compare genes