fix some check/export command bugs