Fixed runtime errors

FileThread seems to be accepting message numbers