Fixes crash in custom pages module