Fixed bug in data layer concerning pages and create/update scripts