Fixed firefox filereading