Revert "trying to fix in range bug"

This reverts commit 87fa5c59bf60f2f810566ddec0440a456da70eda.
Revert "correct in-place conversion bug"

This reverts commit b9d61d23cc38a2f382e4b9dc443125562a7afe7c.