Fixed undefined index errors in two status functions