MOB-349 Fixed variable to get types so that the specs do not crash
Merge pull request #233 from carllarsson/MOB-349

MOB-349 Fixed variable to get types so that the specs do not crash