Fixed null assignment for pages