bug reading file