page detect bug