fixed broken search due to undefined page