[[ Bug 11917 ]] Make sure all variables are initilaised.