Fixed some problems with the txt