Crash bug fixed on pages constructors