sometimes vm is active but IP is not there, added a check