Fixed tkregister2 and applyxfm commands