MOD: bug fix. copy deal php from old version