Fix RPD not checking for adjacency. (Github #508)