Use the constant "KINDS" instead of undefined "kinds"