Half-fix to landing page search bar - only works in some cases. TODO: Fix