Fixed FileThread errors