Fixed bug with searchmodeformatter