The costs attending a transfer shall be taxed by the clerk of the court from which the transfer is granted, and, together with the filing fee in the transferee court, shall be paid by plaintiff. If the court granting the transfer finds that venue was fixed by plaintiff in bad faith and without probable cause, then it may order the reasonable expenses of defendant in attending and obtaining a transfer to a proper venue, including a reasonable attorney's fee, to be paid by plaintiff. If the costs and expenses are not paid within a reasonable time, the transferring court shall on motion dismiss the action.
735 ILCS 5/2-107