Fixing random file parsing