peres: Fix NULL pointer dereference.