Fixed monitoring crashing when restarting phone.