bug fixed for genericType