fixed migrate for pages