IP scaling: Fix #161 on the master branch