fixes index refresh method; closes #11