Amazon VM state monitoring bug-fixing