throw errors id className is not a string