fix mark-auto error when label not set