avoid ArrayIndexOutOfBoundsException in waitTillInstanceReachState