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