Bug-Fix new swap ticket
 -fixed: add locals()