fixed bug for genes