use convert instead of int() in recent indexing fix