same error with pagebeforeshow