Made $grantTypes static to fix ref bug