bugfix table custompages had no primary key