Fixed bug with getting class name for rego