selftest mode fix