bug fix for tehparadox