correct bug for the identification of the state when we are going to standby

Change-Id: I2ef1969f9fceee88dd86b4c5051ee8e656675423