Fixed Bug with gene resources

This is regarding issue #247
A different branch (uptodate with cbmi/master) as requested
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>