Fixed bug with CRUD functions in pages and sections