Correctly extract remainder value