fixing template error with class names being strings instead of arrays