Fixed an undefined varible error from the update adding cloud-app