Fixing bug regarding searching application.