Fixed bug where search wouldn't submit