Fixed txtfile not being associated properly