Un-initialised value gets used and causes a crash not sure if this should be -1 or if I should check later on.