Fixes placeholder rectangle calculations. Fixes #79.