bug fix, class accessor return empty string instead of null when no classes