added fix for libwcs/ty2read.c