Fixing translate bug