Commented hideAllComponents. Since there is an unusual error happening and this error is due to outside forces. So this is not really necessary to debug but this is causing undesirable flow.