Text files fixes