diff --git a/check_onevm b/check_onevm
index 25346590cd521480d4fb1575e8757fbbaeb9300b..8334810cee3967fe580ff5230f0524c986cb5fc3 100755
--- a/check_onevm
+++ b/check_onevm
@@ -124,17 +124,17 @@ ph.perfadd "unknown"  "${iUnknown}"
 ph.perfadd "other"    "${iOther}"
 
 if [ $iUnknown -ne 0 ]; then
-    ps.setStatus "warning"
+    ph.setStatus "warning"
     out+="WARNING: a vm with status [Unknown] was found."
 fi
 
 if [ $iOther -ne 0 ]; then
-    ps.setStatus "warning"
+    ph.setStatus "warning"
     out+="WARNING: There is a VM that has another status than [running]."
 fi
 
 if [ $iFail -ne 0 ]; then
-    ps.setStatus "critical"
+    ph.setStatus "critical"
     out+="ERROR: a vm with status [Failed] was found."
 fi