Update the minfile queries and forgot sprintf on minsize.