Fixed errors with pages not displaying.