Fixed possible runtime crash if we are not allowed to peak at ~/