[INS-407] Fixed AWS detector producing non deterministic output (#4836)