Fix tfw parsing (closes #1)