cast start_index to an int when defined

removes edge case where fdTailer.current_index is initialized with
string type