Fix getRockTypes script