added cast to int in gffreader index comparison