Fix exclude page list not working

Fixes #1389