fix stroke type parsing error