Fix rect conversion which had been disabled in the previous commit