fixed filename and prefix index exception